package com.movie.utils;

import java.util.HashMap;
import java.util.Map;

public class MovieUtil {
    public static String getMovieType(Integer type){
        Map<Integer,String> map = new HashMap<>();
        map.put(1,"电影");
        map.put(2,"电视剧");
        map.put(3,"动画片");
        return map.get(type);
    }

    public static String getMovieKind(Integer kind){
        Map<Integer,String> map = new HashMap<>();
        map.put(1,"电影");
        map.put(2,"电视剧");
        map.put(3,"动画片");
        return map.get(kind);
    }

}
